<div class="content-inner">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="">
		<thead>
			<tr>
				<th align="left" valign="bottom">
					<a href="<?=site_url(array('c' => 'cms_site_content', 'm' => 'add', 'level' => $level, 'nav_id' => $nav_id))?>" title="Add Content">
						<img src="<?=$image_path?>function/add.gif" width="106" height="31" border="0">
					</a>
				</th>
				<th align="right">
					<div>
						<a href="<?=site_url(array('c'=> 'cms_site_frame', 'm'=> 'edit', 'level' => $level, 'nav_id' => $nav_id));?>" title="Info - General Information">
							<img src="<?=$image_path?>icons/w_info.gif" width="48" height="48"/>
						</a>
						<a href="<?=site_url(array('c'=> 'cms_site_frame', 'm'=> 'sortby', 'level' => $level, 'nav_id' => $nav_id));?>" title="Sort Item">
							<img src="<?=$image_path?>icons/w_sort.gif" width="48" height="48"/>
						</a>
						<a href="<?=site_url(array('c'=> 'cms_site_frame', 'm'=> 'delete', 'level' => $level, 'nav_id' => $nav_id));?>" title="Delete - Navigation &amp; Template" onclick="return confirm('Are you sure you want to delete this item?')">
							<img src="<?=$image_path?>icons/w_del.gif" width="48" height="48"/>
						</a>
						<a href="<?=site_url(array('c'=> 'cms_site_frame', 'm'=> 'preview', 'level' => $level, 'nav_id' => $nav_id));?>" target="_blank" title="Preview - Navigation &amp; Template">
							<img src="<?=$image_path?>icons/w_view.gif" width="48" height="48"/>
						</a>
					</div>
				</th>
			</tr>
		</thead>
	</table>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="cont-table-list">
		<thead>
			<tr>
				<th class="small">Edit</th>
				<th class="small">Delete</th>
				<th class="small">Sort</th>
				<th align="left">Template Name</th>
				<th align="left">Title</th>
				<th align="left">Template</th>
			</tr>
		</thead>
		<tbody>
		<?php if(!empty($c1_list)):?>
		<?php $i = 1;?>
		<?php foreach($c1_list as $item):?>
			<tr class="<?= $i%2 ? "odd" : "even"?>">
				<td class="small">
					<a href="<?=site_url(array('d' => 'templates', 'c' => $template_array[$item['temp']]['controller'], 'm'=>'edit', 'level' => $level, 'nav_id' => $nav_id, 'id'=>$item['id']))?>">
						<img src="<?=$image_path?>icons/edit.gif" width="30" height="30" border="0"></a>
				</td>
				<td class="small">
					<a href="<?=site_url(array('d' => 'templates', 'c' => $template_array[$item['temp']]['controller'], 'm'=>'delete', 'level' => $level, 'nav_id' => $nav_id, 'id'=>$item['id']))?>" onclick="return confirm('Are you sure you want to delete this item?')">
						<img src="<?=$image_path?>icons/del.gif" width="30" height="30" border="0"></a>
				</td>
				<td class="small"><?=$item['sort']?></td>
				<td><?=$item['name']?></td>
				<td><?=$item['title']?></td>
				<td><?=$template_array[$item['temp']]['name']?></td>
			</tr>
		<?php endforeach;?>
		<?php else:?>
			<tr>
				<td colspan="5" align="center">Not items</td>
			</tr>
		<?php endif;?>
		</tbody>
	</table>
</div>